/*banner*/
window.setTimeout("onload_pic()", 0);
function onload_pic(){
	var j;
	for(j=1;j<=10;j++){
		var obj=document.getElementById("swiper-slide_"+j);
		obj.style.background="url(images/banner_"+j+".jpg) center center no-repeat";
	}
}



function open_menu() {
	// body...
	var obj1=document.getElementById("sort_menu");
	var obj2=document.getElementById("sj");
	// obj1.style.display="block";
	// obj1.style.height="300px";
	// obj1.width="100%";
	obj2.style.transform="rotate(0deg)";
}

function close_menu() {
	// body...
	var obj1;
	for(var j=1;j<=5;j++){
		obj1=document.getElementById("li_dg"+j);
		obj1.style.backgroundColor="skyblue";
		obj1.style.color="black";
	}
	var obj2=document.getElementById("sj");
	// obj1.style.display="none";
	// obj2.style.transition="-webkit-transform 0.3s ease-in 0s";
	obj2.style.transform="rotate(90deg)";
}

function display_dgfl(i){

	var li_dg=document.getElementById("li_dg"+i);
	var dgy=document.getElementById("dgy"+i);
	
	for(var j=1;j<=5;j++){
		li_dg=document.getElementById("li_dg"+j);
		li_dg.style.backgroundColor="skyblue";
		li_dg.style.color="black";

		dgy=document.getElementById("dgy"+j);
		dgy.style.display="none";
	}

	dgy=document.getElementById("dgy"+i);
	dgy.style.display="block";
	dgy.style.backgroundColor="#f7f7f7";
	dgy.style.color="#666";
	// dgy.width="820px";

	li_dg=document.getElementById("li_dg"+i);
	li_dg.style.backgroundColor="#f7f7f7";
	li_dg.style.color="#666";

}

function a_hover(a){
	var obj=document.getElementById("li_dg"+a);
		obj.style.backgroundColor="#f7f7f7";
		obj.style.color="#666";
}

function chance_money(size_html,money){
	
		document.getElementById("size_6").style.borderColor="#e0e0e0";
		document.getElementById("size_8").style.borderColor="#e0e0e0";
		document.getElementById("size_10").style.borderColor="#e0e0e0";
		document.getElementById("size_12").style.borderColor="#e0e0e0";
	var size=document.getElementById("size_"+size_html);
	var jiage=document.getElementById("jia_ge");
		if(size_html==6)
		{
			jiage.innerHTML="￥"+money+".00";
			size.style.borderColor="#f13a3a";
			// document.getElementById("size_8").style.borderColor="#e0e0e0";
		}
		if(size_html==8)
		{
			jiage.innerHTML="￥"+money+".00";
			size.style.borderColor="#f13a3a";
		}
		if(size_html==10)
		{
			jiage.innerHTML="￥"+money+".00";
			size.style.borderColor="#f13a3a";
		}
		if(size_html==12)
		{
			jiage.innerHTML="￥"+money+".00";
			size.style.borderColor="#f13a3a";
		}
}

function up_num() {
	var upnumber=document.getElementById("num");
	if(upnumber.innerHTML>=5)
	{
		upnumber.innerHTML=5;
	}
	else{
		upnumber.innerHTML=upnumber.innerHTML-1+2;
	}
}

function down_num() {
	var downnumber=document.getElementById("num");
	if(downnumber.innerHTML<=1)
	{
		downnumber.innerHTML=1;
	}
	else{
		downnumber.innerHTML=downnumber.innerHTML-1;
	}
}



// phone
var flag_menu=0;

function Onmenu(){
	var obj1=document.getElementById("mMasklay");
	var obj2=document.getElementById("mMenulay");
	if(flag_menu==0) 
	{
		obj1.style.display="block";
		obj2.style.display="block";
		flag_menu=1;
		// alert(flag_menu);
	}
}

function divDis(){
	var obj1=document.getElementById("mMasklay");
	var obj2=document.getElementById("mMenulay");
	if(flag_menu==1) 
	{
		obj1.style.display="none";
		obj2.style.display="none";
		flag_menu=0;
	}
}

// phone
